package org.firebug.spring.boot.redisson.schedule;

import redis.clients.jedis.JedisPubSub;

public class Subscribe extends JedisPubSub {
    @Override
    public void onPSubscribe(String pattern, int subscribedChannels) {
        System.out.println("onPSubscribe(String pattern, int subscribedChannels) -> " + pattern + ", " + subscribedChannels);
    }
    @Override
    public void onPUnsubscribe(String pattern, int subscribedChannels) {
        System.out.println("onPUnsubscribe(String pattern, int subscribedChannels) -> " + pattern + ", " + subscribedChannels);
    }

    @Override
    public void onPMessage(String pattern, String channel, String message) {
        System.out.println("onPMessage(String pattern, String channel, String message) -> " + pattern +"," + channel + ", " + message);
    }
    @Override
    public void onMessage(String channel, String message) {
        System.out.println("onMessage(String channel, String message) -> " + channel + ", " + message);
    }

    @Override
    public void onSubscribe(String channel, int subscribedChannels) {
        System.out.println("onSubscribe(String channel, int subscribedChannels) -> " + channel + ", " + subscribedChannels);
    }
    @Override
    public void onUnsubscribe(String channel, int subscribedChannels) {
        System.out.println("onUnsubscribe(String channel, int subscribedChannels) -> " + channel + ", " + subscribedChannels);
    }

    @Override
    public void onPong(String pattern) {
        System.out.println("onPong(String pattern) -> " + pattern);
    }
}